package com.briup.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@ApiModel("新增或修改栏舍数据线传输对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class AddOrUpdateFenceHouseDTO {
    /**
     * 栏舍id
     */
    @ApiModelProperty("栏舍id")
    private String fhId;

    /**
     * 栏舍名称
     */
    @ApiModelProperty("栏舍名称")
    private String fhName;

    /**
     * 栏舍描述
     */
    @ApiModelProperty("栏舍描述")
    private String fhDesc;

    /**
     * 栏舍创建时间
     */
    @ApiModelProperty("栏舍创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime fhTime;
}
